//
//  CheckPassView.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/11/10.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "CheckPassView.h"

@implementation CheckPassView

-(instancetype)initWithFrame:(CGRect)frame
{
    if (self=[super initWithFrame:frame]) {
        
        self=[[[NSBundle mainBundle]loadNibNamed:@"CheckPassView" owner:self options:nil]lastObject];
        self.frame=frame;
        
    }
    
    return self;
}

- (IBAction)PassAction:(UIButton *)sender {
    
    _block(YES);
}
- (IBAction)UnPassAction:(UIButton *)sender {
    
    _block(NO);
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
